/**
 * Copyright (C) 2009 Fsti Inc.
 *
 */
package com.fsti.ppmw.port.payment;

import java.util.Date;

import org.apache.commons.lang.StringUtils;

/**
 * 支付接口信息
 * 
 * 
 * @author Song Qing
 *
 */
public class Payment {
	/**
	 * 申请流水号
	 */
	private String requestId;
	/**
	 * 呼叫流水号
	 */
	private String flowNo;
	/**
	 * 申请类型 0:查询 1:支付
	 */
	private String requestType;
	/**
	 * 申请产生的时间
	 */
	private Date timestamp;
	/**
	 * 主叫号码
	 */
	private String userTel;
	/**
	 * 主叫接入区号
	 */
	private String areaCode;
	/**
	 * 订单ID
	 */
	private String orderId;
	/**
	 * 订单费用	单位:分 积分查询的状态下为需要消耗积分点数
	 */
	private String orderFee;
	/**
	 * 用户剩余总积分 当为积分查询时有效
	 */
	private String balance;
	/**
	 * 订单状态
	 */
	private String orderStatus;
	/**
	 * 操作结果(支付时为支付结果)
	 */
	private String respCode;
	/**
	 * 当前信息状态 0:保留 1:等待进一步数据 2:数据插入完成 3.语音业务使用完成
	 */
	private String infoStatus;
	
	public String getRequestId() {
		return requestId;
	}
	public void setRequestId(String requestId) {
		this.requestId = requestId;
	}
	public String getFlowNo() {
		return flowNo;
	}
	public void setFlowNo(String flowNo) {
		this.flowNo = flowNo;
	}
	public String getRequestType() {
		return requestType;
	}
	public void setRequestType(String requestType) {
		this.requestType = requestType;
	}
	public Date getTimestamp() {
		return timestamp;
	}
	public void setTimestamp(Date timestamp) {
		this.timestamp = timestamp;
	}
	public String getUserTel() {
		return userTel;
	}
	public void setUserTel(String userTel) {
		this.userTel = userTel;
	}
	public String getAreaCode() {
		return areaCode;
	}
	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}
	public String getOrderId() {
		return orderId;
	}
	public void setOrderId(String orderId) {
		if(StringUtils.isBlank(orderId))
			orderId="";
		this.orderId = orderId;
	}
	public String getOrderFee() {
		return orderFee;
	}
	public void setOrderFee(String orderFee) {
		if(StringUtils.isBlank(orderFee))
			orderFee="";
		this.orderFee = orderFee;
	}
	public String getOrderStatus() {
		return orderStatus;
	}
	public void setOrderStatus(String orderStatus) {
		if(StringUtils.isBlank(orderStatus))
			orderStatus="";
		this.orderStatus = orderStatus;
	}
	public String getRespCode() {
		return respCode;
	}
	public void setRespCode(String respCode) {
		if(StringUtils.isBlank(respCode))
			respCode="";
		this.respCode = respCode;
	}
	public String getInfoStatus() {
		return infoStatus;
	}
	public void setInfoStatus(String infoStatus) {
		if(StringUtils.isBlank(infoStatus))
			infoStatus="";
		this.infoStatus = infoStatus;
	}
	@Override
	public String toString() {
		return "Payment [areaCode=" + areaCode + ", balance=" + balance + ", flowNo=" + flowNo + ", infoStatus="
				+ infoStatus + ", orderFee=" + orderFee + ", orderId=" + orderId + ", orderStatus=" + orderStatus
				+ ", requestId=" + requestId + ", requestType=" + requestType + ", respCode=" + respCode
				+ ", timestamp=" + timestamp + ", userTel=" + userTel + "]";
	}
	public String getBalance() {
		return balance;
	}
	public void setBalance(String balance) {
		this.balance = balance;
	}
	
}
